<?php
include_once("../../service/productService.php");
if(isset($_POST["user"])&&isset($_POST["proid"])){
    if(likeProduct($_POST["proid"],$_POST["user"])>0)
        $arr = array('success' => '1');
    else{
        $arr = array('success' => '0');
    }
    echo json_encode($arr);
}
?>